Teacher Version

Hero Image
Hero Image

Turning Ratio

Motor Speeds

The last two boxes of the lineTrackLeft and lineTrackRight commands are motor speeds. They affect how sharply the robot will turn toward and away from the black line.

To test out your robot in this activity, create a line tracking course that has a straight portion and a curved portion.

Below is an example of how the course could look:

Part 1: Modify your program so that the second box is set to 100 and the third box is set to 0. Download and run your program on a line tracking course that includes both straight and curved portions.

The robot turns very sharply, overshooting the line on the straight portions of the course.

Part 2: Modify your program so that the second box is set to 50 and the third box is set to 40. Download and run your program on the same line tracking course.

Check Your Understanding

  1. Why is it important to control the speed at which the robot tracks a line?
    1. If the robot turns too fast and overshoots the line, it will not track the line correctly.
    2. If the robot turns too slowly, it will not track sharp turns in the line.
    3. Depending upon how straight or curved a line is, it may require the robot to turn at different speeds.
    4. All of the above

ClosedClick here for the Answers

D. All of the above

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.